<template>
  <el-tag :type="typeCode" size="mini">{{ finished }}</el-tag>
</template>

<script>
export default {
  props: {
    row: {
      type: Object,
      default: _ => {
        return {};
      }
    }
  },
  computed: {
    typeCode() {
      return this.row.finished ? 'success' : 'info';
    },
    finished() {
      return this.row.finished ? '已完成' : '未完成';
    }
  }
};
</script>
